import java.util.GregorianCalendar;

/**
 *
 * @author sirblackheart
 */
public class Excercise {
	private GregorianCalendar date;
	private Points points;
	
	public Excercise(GregorianCalendar date, int maxPoints) {
		this.date = date;
		this.points = new Points(maxPoints);
	}
	
	public Excercise(GregorianCalendar date, Points points) {
		this.date = date;
		this.points = points;
	}
	
	public Excercise(Excercise excercise, int achievedPoints) {
		this.date = excercise.getDate();
		this.points = excercise.getPoints();
		this.points.setAchievedPoints(achievedPoints);
	}

	/**
	 * @return the date
	 */
	public GregorianCalendar getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(GregorianCalendar date) {
		this.date = date;
	}

	/**
	 * @return the points
	 */
	public Points getPoints() {
		return points;
	}

	/**
	 * @param points the points to set
	 */
	public void setPoints(Points points) {
		this.points = points;
	}
}